package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author dxt
 * @create 2025-07-17-10:40
 */
public interface PurchaseListDao {


    /**
     * 添加采购单
     * @param purchaseList
     */
    void insertPurchaseList(@Param("purchaseList") PurchaseList purchaseList);

    /**
     * 查询进货单
     * @param purchaseNumber 单号
     * @param supplierId 供应商ID
     * @param state 付款状态
     * @param sTime 开始时间
     * @param eTime 结束时间
     * @return
     */
    List<PurchaseList> getPurchaseList(@Param("purchaseNumber") String purchaseNumber, @Param("supplierId") Integer supplierId, @Param("state") Integer state, @Param("sTime") String sTime, @Param("eTime") String eTime);

    /**
     * 删除采购单
     * @param purchaseListId 采购单ID
     * @return
     */
    void deletePurchaseListById(@Param("purchaseListId") Integer purchaseListId);

    /**
     * 修改进货单付款状态
     * @param purchaseListId 进货单ID
     * @return
     */
    void updateState(@Param("purchaseListId") Integer purchaseListId);

    /**
     * 查询所有进货单
     * @param sTime 开始时间
     * @param eTime 结束时间
     * @return
     */
    List<PurchaseList> getPurchaselist(@Param("sTime") String sTime, @Param("eTime") String eTime);
}
